﻿
//int[] arr = new int[100];
//t i = 0;//数组下标
Console.WriteLine("100之内的素数有：");
int j = 2;//从2数到100
while(j<=100)
{
    bool flag = true;
    int index = 2;
    while(index<j)
    {
        int a = j % index;
        if(a==0)
        {
            flag = false;
            break;
        }
        else
            index++;
    }
    if(flag)
    {
        Console.Write(j + " ");
    
    }
    j++;
}


